package com.oa.admin.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.oa.admin.dto.CompanyActivityApplyListDTO;
import com.oa.admin.entity.CompanyActivityApply;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.oa.admin.vo.CompanyActivityApplyDetailsVO;
import com.oa.admin.vo.CompanyActivityApplyListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 公司活动申请表 Mapper 接口
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
public interface CompanyActivityApplyMapper extends BaseMapper<CompanyActivityApply> {
    /**
     * 分页查询列表
     * @param page
     * @return
     */
     List<CompanyActivityApply> findList(Pagination page);

     /**
     * 查询所有列表
     * @return
     */
     List<CompanyActivityApply> findList();

        /**
        * 根据id查询
   */
    CompanyActivityApply findById(@Param("id") String id);

    List<CompanyActivityApplyListVO> findCompanyActivityApplyList(Page page, CompanyActivityApplyListDTO companyActivityApplyListDTO);

    CompanyActivityApplyDetailsVO companyActivityApplyDetails(String id);
}
